//
//  QPaySuccessVC.m
//  QoilPublic
//
//  Created by 杨凯 on 16/7/14.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QPaySuccessVC.h"
#import "QAllOrderMoreVC.h"
#import "QDetailsOrderVC.h"
#import "PingJiaVC.h"
@interface QPaySuccessVC ()

@property (weak, nonatomic) IBOutlet UIButton *seeOrderBtn;

@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;

@end

@implementation QPaySuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _seeOrderBtn.layer.cornerRadius = 4.0;
    
    [_seeOrderBtn blueStyle];
    
    [QViewUtility setupNavigationBarBackForController:self backSelector:@selector(bac)];
    
    NSString * outNumber = [NSString stringWithFormat:@"%@",@(_orderScore.floatValue)];
    
    self.scoreLabel.text = [NSString stringWithFormat:@"评价可获得%@积分",outNumber];
}

- (void)bac{

    [[NSNotificationCenter defaultCenter]postNotificationName:@"PaySuccessNotification" object:nil];
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (IBAction)buttonAction:(id)sender {
    
    
    PingJiaVC *vc = [[PingJiaVC alloc]init];
    vc.orderId = _orderId;
    vc.type = 1;
    [self.navigationController pushViewController:vc animated:YES];
    //QAllOrderMoreVC *vc = [[QAllOrderMoreVC alloc] init];
//    QDetailsOrderVC * vc = [[QDetailsOrderVC alloc] init];
//    vc.orderId = self.orderId;
//    vc.detailOrderStyle = DetailsOrderfinishStyle;
//    [self.navigationController pushViewController:vc animated:YES];
    
}

@end
